home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
util
/
dir
/
megad31b.lha
/
rexx
/
nextItem.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-30
|
679b
|
41 lines
/* example of NextItem */
ADDRESS REXX
CALL CLOSE 'STDOUT'
CALL OPEN 'STDOUT','con:0/12/640/100/MegaD RX/SCREEN MEGAD', 'W'
OPTIONS RESULTS
OPTIONS FAILAT 20
SIGNAL ON FAILURE
ADDRESS MEGAD
dbug
CloseWindows/* close any open windows */
Mark "Ram:" /* open the ram disk */
SAY RESULT
SelectAll /* select everything */
DO FOREVER
NextItem Name
IF RESULT = "" THEN LEAVE
SAY RESULT
NextItem Filename
SAY RESULT
NextItem Path
SAY RESULT
NextItem Size
SAY RESULT
NextItem Date
SAY RESULT
NextItem Comment
IF RESULT ~= "" THEN SAY RESULT
NextItem Type clear /* Clear the item */
SAY RESULT
END
EXIT
failure:
IF RC ~= 0 THEN SAY "Script Failed, RC = " RC
EXIT